//
//  Tire.m
//  CarPartsInit
//
//  Created by quentin on 15/9/16.
//  Copyright (c) 2015年 QuentinLabs. All rights reserved.
//

#import "Tire.h"

@implementation Tire

-(id)init
{
    if (self == [super init])
    {
        pressure = 34.0;
        treadDepth = 20.0;
    }
    return self;
}

-(void) setPressure:(float) p
{
    pressure = p;
}

-(float) pressure
{
    return pressure;
}

-(void) setTreadDepth:(float)t
{
    treadDepth = t;
}

-(float) treadDepth
{
    return (treadDepth);
}


-(NSString*) description
{
    NSString* desc;
    desc = [NSString stringWithFormat:@"Tire: Pressure: %.1f TreadDepth: %.1f",pressure,treadDepth];
    return desc;
}

@end
